{block #content}
<a name="topList"></a>
<h1>{$title}</h1>

{*<p>There are no dirty logs. Anyway, I want to <a href="{link Display:check}">check</a> it.</p>*}


<script type="text/javascript">
    $(function() {
        $("#frmdatepickerForm-date").datepicker( { dateFormat : 'yy-mm-dd' } );
    });
</script>

<div class="searchForm">
{control datepickerForm}
</div>

{if isset($logArray)}

{if $curPosition > 1}<a href="{link Display: $curPosition, true}" title="{!_'Previous'}">{!_"« Previous"}</a> |{/if}
{if $curPosition != 1 || !$eofNext} <span title="{!_'Probably page %s',$positionPage}">{!_"Read from the byte %s",$curPosition}</span> {/if}
{if !$eofNext} | <a href="{link Display: $position, false}" title="{!_'Next'}">{!_"Next »"}</a>{/if}

<table>
    <tr class="invisible">
	<th>{!_"Time"}</th>
	<th>{!_"Type"}</th>
	<th>{!_"Header"}</th>
	<th>{!_"Debug"}</th>
    </tr>
{foreach $logArray as $log}
    <tr{if $iterator->even} class="td_odd"{/if}>
        <td>{$log["date"]}</td>
        <td>{$log["type"]}</td>
        <td class="fontSmall">{$log["headline"]}</td>
        <td>{if $log["hash"] == "missing"}{!_"N/A"}
            {else}<a href="{link Detail: $log['hash']}" class="button ui-state-default ui-corner-all" title="{!_'Debug'}"><span class="ui-icon ui-icon-info">{!_"Debug"}</span></a>
            {/if}
        </td>
    </tr>
{/foreach}
</table>
{*
{if $page > 1}<a href="{link Display: $page-1}">{!_"« Previous"}</a> |{/if}
{if $page != 1 || !$eofNext}{!_"Page"} {$page}{/if}
{if !$eofNext} | <a href="{link Display: $page+1}">{!_"Next »"}</a>{/if}
*}

<p><a href="#topList" class="button ui-state-default ui-corner-all"><span class="ui-icon ui-icon-triangle-1-n floatLeft">&nbsp;</span>&nbsp;{!_"Top"}</a></p>
{/if}